<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
   <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.1.min.js"></script>

  <head>
    <title>SupportIT</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
     <f:metadata>
         <f:viewParam name="studid" value="#{userbean.userId}" />
    </f:metadata>
  </head>
  <h:body>
    <ui:include src="/templates/layout_user.xhtml" />
      <div class="wrapper">
          
          <a href="#signout" style="float:right; color:#ffa52c; margin-top:-27px;
             font-size:16px; font-weight: bold;">Logg ut</a>
             
          <div class="box">
      


	
	<div id="background">
            
		<form id="text_statistic" method="get" action="#users"><b>Siste nytt</b></form> 
    

                       
	<div class="tfclear"></div>
        
        </div>
              
              <div class="box-news">
                  <h1>Tidsfrister moduler</h1> 
                  <h:dataTable class="zebra" value="#{modulenlistbean.modulen}" var="mode">  
                     <h:column>
                         <f:facet name="header">ModulNr</f:facet>
            
                         Modul #{mode.modulenId}
                         
                    </h:column>   
                         
                      <h:column>
                         <f:facet name="header">Tidsfrist</f:facet>
            
                         <h:outputText value="#{mode.dato}">
                         <f:convertDateTime pattern="MM/dd/yyyy" />
                         </h:outputText>
                         
                    </h:column> 
                       </h:dataTable> 
              </div>
              
              <div class="box-news second">
                  <h1>Levert</h1>
                  <h:dataTable class="zebra" value="#{progresslistbean.getProgressStudents(userbean.userId)}" var="user">  
                     <h:column>
                         <f:facet name="header">ModulNr</f:facet>
            
                         Modul #{user.moduler.modulenId}
                         
                    </h:column>   
                         
                      <h:column>
                         <f:facet name="header">Tilbakemelding</f:facet>
                         <h:link value="Se tilbakemelding" outcome="message.xhtml">
                             <f:param name="feedback" value="#{user.feedback.feedbackId}" />
                         <f:param name="studid" value="#{user.bruker.id}" />
                         <f:param name="idno" value="#{user.moduler.modulenId}" />
                         </h:link>
                         
                    </h:column>  
                      
                      <h:column>
                         <f:facet name="header">Status</f:facet>
            
                         #{user.feedback.status}
                         
                    </h:column> 
                
                      
                       </h:dataTable> 
              </div>
              
        </div>
              
          </div>
      
  </h:body>
</html>